package com.contain.minio.controller;

import com.contain.minio.service.MinioService;
import com.contain.minio.service.UserAuthDefault;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: tianchao
 * @Date: 2021/8/19 22:57
 * @Description:
 */
@RestController
public class MinioController {
    private Logger log = LoggerFactory.getLogger(MinioController.class);
    @Autowired
    private MinioService minioService;

    @Value("${minio.isopen}")
    public Boolean isopen;
    @GetMapping("/upload")
    public String test(){
        minioService.upload();
        log.info("[默认值 ISopen] {}",isopen);
        return "upload";
    }

}
